import  os
import _thread

def run():
    os.system("notepad")

for i in range(10): # 开启10个子线程
    _thread.start_new_thread(run,()) # 主线程结束，子线程也结束
print("over")
while True:
    pass